package com.ticket.sass.common.entity.tenant.field

import com.google.gson.Gson
import com.ticket.sass.common.entity.tenant.CommodityEntity

fun CommodityEntity.coverFirst(): String {
    return Gson().fromJson<List<String>>(this.cover.toString(), List::class.java)?.firstOrNull() ?: ""
}